package com.ty.interview.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ty.interview.model.entity.Question;
import lombok.Data;
import org.apache.ibatis.annotations.Select;

import java.util.Date;
import java.util.List;

public interface QuestionMapper extends BaseMapper<Question> {
    /**
     * 查询题目列表(包括已被删除的数据)
     * @param minUpdateTime
     * @return
     */
    @Select("SELECT * FROM question WHERE updateTime >= #{minUpdateTime}")
    List<Question> listQuestionWithDelete(Date minUpdateTime);
}
